package com.copm.ifm.servers.sys.process.getter;

import com.copm.ifm.common.process.core.getter.ITargetInfoGetter;
import com.copm.ifm.servers.sys.entity.SysProject;
import com.copm.ifm.servers.sys.mapper.project.SysProjectMapper;

import java.io.Serializable;

/**
 * 项目信息获取类
 *
 * @author zzf
 * @date 2021/3/25 14:31
 */
public class ProjectInfoGetter implements ITargetInfoGetter<SysProject> {

    private final SysProjectMapper mapper;

    public ProjectInfoGetter(SysProjectMapper mapper) {
        this.mapper = mapper;
    }

    @Override
    public SysProject getById(Serializable id) {
        return mapper.selectById(id);
    }
}
